package com.party.core.model.member;

import java.util.Objects;

/**
 * @program: party
 * @description: C端用户输入
 * @author: Hua Qunhao
 * @create: 2019-08-15 17:02
 **/
public class CmemberInput extends Member {

    //'邮箱'
    private String email;
    //'宣言'
    private String manifesto;
    //'爱好'
    private String hobby;
    //'简介'
    private String synopsis;
    //'详细地址'
    private String address;


    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getManifesto() {
        return manifesto;
    }

    public void setManifesto(String manifesto) {
        this.manifesto = manifesto;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getSynopsis() {
        return synopsis;
    }

    public void setSynopsis(String synopsis) {
        this.synopsis = synopsis;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CmemberInput that = (CmemberInput) o;
        return Objects.equals(email, that.email) &&
                Objects.equals(manifesto, that.manifesto) &&
                Objects.equals(hobby, that.hobby) &&
                Objects.equals(synopsis, that.synopsis) &&
                Objects.equals(address, that.address);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), email, manifesto, hobby, synopsis, address);
    }

    @Override
    public String toString() {
        return "CmemberInput{" +
                "email='" + email + '\'' +
                ", manifesto='" + manifesto + '\'' +
                ", hobby='" + hobby + '\'' +
                ", synopsis='" + synopsis + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
